home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / RIncludes / Components.r < prev    next >
Encoding:
Text File  |  1997-08-12  |  2.5 KB  |  88 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Components.r
  3.  
  4.      Contains:    Component Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1991-1997 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18.  
  19. #ifndef __COMPONENTS_R__
  20. #define __COMPONENTS_R__
  21.  
  22. #ifndef __CONDITIONALMACROS_R__
  23. #include "ConditionalMacros.r"
  24. #endif
  25.  
  26. #define cmpWantsRegisterMessage         0x80000000
  27. #define componentDoAutoVersion             0x01
  28. #define componentWantsUnregister         0x02
  29. #define componentAutoVersionIncludeFlags  0x04
  30. #define componentHasMultiplePlatforms     0x08
  31.  
  32.  
  33. /*----------------------------thng  • Component Manager thing ------------------------*/
  34. /*
  35.     thng_RezTemplateVersion:
  36.         0 - original 'thng' template    <-- default
  37.         1 - extended 'thng' template
  38. */
  39. #ifndef thng_RezTemplateVersion
  40.     #ifdef UseExtendedThingResource            /* grandfather in use of “UseExtendedThingResource” */
  41.         #define thng_RezTemplateVersion 1
  42.     #else
  43.         #define thng_RezTemplateVersion 0
  44.     #endif
  45. #endif
  46.  
  47.  
  48. type 'thng' {
  49.         literal longint;                                        /* Type */
  50.         literal longint;                                        /* Subtype */
  51.         literal longint;                                        /* Manufacturer */
  52.         unsigned hex longint;                                     /* component flags */
  53.         unsigned hex longint    kAnyComponentFlagsMask = 0;        /* component flags Mask */
  54.         literal longint;                                        /* Code Type */
  55.         integer;                                                /* Code ID */
  56.         literal longint;                                        /* Name Type */
  57.         integer;                                                /* Name ID */
  58.         literal longint;                                        /* Info Type */
  59.         integer;                                                /* Info ID */
  60.         literal longint;                                        /* Icon Type */
  61.         integer;                                                /* Icon ID */
  62. #if thng_RezTemplateVersion == 1
  63.         unsigned hex longint;                                    /* version of Component */
  64.         longint;                                                /* registration flags */
  65.         integer;                                                /* resource id of Icon Family */
  66.         longint = $$CountOf(ComponentPlatformInfo);
  67.         wide array ComponentPlatformInfo {
  68.             unsigned hex longint;                                 /* component flags */
  69.             literal longint;                                    /* Code Type */
  70.             integer;                                            /* Code ID */
  71.             integer platform68k = 1, platformPowerPC = 2;        /* platform type (response from gestaltSysArchitecture) */
  72.         };
  73. #endif
  74. };
  75.  
  76.  
  77. /*----------------------------thn#  • Component Manager thing load order dependency ----*/
  78. type 'thn#' {
  79.         array {
  80.             literal longint;                                        /* Code Type */
  81.             integer;                                                /* Code ID */
  82.         };
  83. };
  84.  
  85.  
  86. #endif /* __COMPONENTS_R__ */
  87.  
  88.